package test3;

import java.awt.GridLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Log {
    JFrame j;
    JPanel p;
    JLabel[] l = new JLabel[52];

    public Log() {
        j = new JFrame("登陆记录");
        j.setBounds(500, 200, 800, 500);
        p = new JPanel(new GridLayout(10, 10));
        for (int i = 1; i <= 52; i++) {
            l[i - 1] = new JLabel(i + "号登陆者:" + WriteLog.str[i - 1]);
            p.add(l[i - 1]);
        }
        j.add(p);
        j.setVisible(true);
    }
}
